public class JSegmentation {
	static {

		// String path = JPanelFileSelection.defaultDirectory;
		// System.out.println("Default directory found - " + path);

		// String libPath = System.getProperty("java.library.path");
		// System.out.println(libPath);
		// System.setProperty("java.library.path", libPath + ":" + path
		// + "mipav/plugins");
		// libPath = System.getProperty("java.library.path");
		// System.out.println(libPath);

		String systemName = System.getProperty("os.name");
		System.out.println("using " + systemName);
		// if (systemName.equals("Linux"))
		// System.load(path + "mipav/plugins/libJSegmentation.so");
		// else
		// System.load(path + "mipav\\plugins\\libJSegmentation.dll");

		// NO WORKING WITH MIPAV java.lang.UnsatisfiedLinkError: no
		// JSegmentation in java.library.path
		// System.loadLibrary("JSegmentation");

		// LINUX
		// System.load(path + "mipav/plugins/JSegmentation.so");
		// WIN32
		// System.load(path + "mipav\\plugins\\JSegmentation.dll");
	}

	public static int segment(int height, int width, int depth,
			int numberOfImages, int numberOfRegions, short[] images,
			short[] mask, short[] initialPoints, double smoothCost,
			int expandIterations, int graphIterations, int logFlag) {
		return 0;
	}

	public static int analyze(int height, int width, int depth,
			int numberOfImages, int numberOfRegions, short[] images,
			short[] mask, short[] initialPoints, double[] mean,
			double[] variance, double[] curtosis) {
		return 0;
	}
}
